using bbtpClient.Entities;
using bbtpClient;
using bbtpClient.WebServices;

namespace bbtpClient.Controllers
{

    public static class TransportCompanyController
    {
        private static readonly TransportCompanyControllerClient Instance = 
            new TransportCompanyControllerClient("TransportCompanyControllerImplPort", Program.Host + "transportCompanyController");

        public static TransportCompany GetTransportCompany(long companyId)
        {
            return Instance.getTransportCompany(UserInfo.SessionId, companyId);
        }

        public static void SaveTransportCompany(TransportCompany company)
        {
            Instance.saveTransportCompany(UserInfo.SessionId, company);
        }

        public static TransportCompanyHead[] GetTransportCompaniesList()
        {
            return Instance.getTransportCompaniesList(UserInfo.SessionId);
        }

        public static void DeleteTransportCompany(long companyId)
        {
            Instance.deleteTransportCompany(UserInfo.SessionId, companyId);
        }
    }

}